title {label: "PlanetaLibre Entity-Relationship diagram", size: "24"}

# Entities

entity {size: "16", font: "Courier"}

[capsules] {bgcolor: "#ececfc"}
id {label: "(PK1) CHAR(36) NOT NULL"}
link {label: "(UK1) TEXT NOT NULL"}
name {label: "VARCHAR(125) NOT NULL"}
created_at {label: "DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP"}
updated_at {label: "DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP"}

[posts] {bgcolor: "#fbfbdb"}
id {label: "(PK1) CHAR(36) NOT NULL"}
capsule_id {label: "(FK1) CHAR(36) NOT NULL"}
link {label: "(UK1) TEXT NOT NULL"}
title {label: "VARCHAR(255) NOT NULL"}
created_at {label: "DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP"}
updated_at {label: "DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP"}

# Relationships

capsules 1--* posts
